//
//  BKmyOrderReturnGoodProgressListTableCell.m
//  bestkeep
//
//  Created by Mr. Wu on 16/12/20.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKmyOrderReturnGoodProgressListTableCell.h"
#import "BK_OD_Tool.h"
@implementation BKmyOrderReturnGoodProgressListTableCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        self.backgroundColor = [UIColor whiteColor];
        
        _lineLabel = [UILabel new];
        _lineLabel.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_lineLabel];
        
        [_lineLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView.mas_left).offset(20);
            make.width.mas_equalTo(@(1));
            make.bottom.mas_equalTo(self.contentView.mas_bottom);
            make.top.mas_equalTo(self.contentView.mas_top).offset(0);
        }];
        
        _collectLabel = [UILabel new];
        _collectLabel.backgroundColor = [UIColor grayColor];
        _collectLabel.layer.cornerRadius = 3.5;
        _collectLabel.layer.masksToBounds = YES;
        [self.contentView addSubview:_collectLabel];
        
        [_collectLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self.contentView.mas_top).offset(0);
            make.centerX.mas_equalTo(_lineLabel.mas_centerX);
            make.width.mas_equalTo(@(7));
            make.height.mas_equalTo(@(7));
        }];
        
        _collectImage = [[UIImageView alloc]initWithFrame:CGRectMake(20, 20, 20, 20)];
        _collectImage.backgroundColor = [UIColor colorWithRed:0.331 green:1.000 blue:0.197 alpha:1.000];
        _collectImage.image = [UIImage imageNamed:@"Rectangle6@2.0x.png"];
        _collectImage.hidden = YES;
        //  [self.contentView addSubview:_collectImage];
        
        //        [_collectImage mas_makeConstraints:^(MASConstraintMaker *make) {
        //            make.top.mas_equalTo(self.contentView.mas_top).offset(0);
        //            make.centerX.mas_equalTo(_lineLabel.mas_centerX);
        //            make.width.mas_equalTo(@(12));
        //            make.height.mas_equalTo(@(15));
        //        }];
        
        _detailLabel = [UILabel new];
        _detailLabel.font = [UIFont systemFontOfSize:14.0];
        _detailLabel.numberOfLines = 0;
        _detailLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_detailLabel];
        
        [_detailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self.contentView.mas_top).offset(10);
            make.left.mas_equalTo(_lineLabel.mas_right).offset(10);
            make.right.mas_equalTo(self.contentView.mas_right).offset(-ApplicationBackGauge);
        }];
        
        _timeLabel = [UILabel new];
        _timeLabel.backgroundColor = [UIColor whiteColor];
        _timeLabel.textColor = [UIColor grayColor];
        _timeLabel.font = [UIFont systemFontOfSize:13.0];
        [self.contentView addSubview:_timeLabel];
        
        [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(_detailLabel.mas_bottom).offset(5);
            make.left.mas_equalTo(_lineLabel.mas_right).offset(10);
        }];
    }
    return self;
}

//-(void)setModel:(LogistModel *)model{
//    _model = model;
//    _detailLabel.text = _model.remark;
//    _timeLabel.text = _model.time;
//}


@end
